package work;

/**
 * @TODO
 * @Author xu
 * 2025/2/24
 */
public class Day4_1 {
    public static void main(String[] args) {
        int[] oneDArray = new int[5];
        for (int i = 0; i < oneDArray.length; i++) {
            oneDArray[i] = i + 1;
        }
        System.out.print("一维数组的值: ");
        for (int value : oneDArray) {
            System.out.print(value + " ");
        }
        System.out.println();
    }

}
